package com.yangye.cloud.mybatis.core.page;

import lombok.Data;

/**
 * @author yangye
 * @date 2019/8/30
 */
@Data
public class Pagination {

	/**
	 * 当前页码
	 */
	private int pageNum;

	/**
	 * 分页大小
	 */
	private int pageSize;

	/**
	 * 记录总数
	 */
	private long total;

	/**
	 * 总页数
	 */
	private int pages;

	public Pagination(int pageNum, int pageSize, long total, int pages) {
		this.pageNum = pageNum;
		this.pageSize = pageSize;
		this.total = total;
		this.pages = pages;
	}
}
